package feign.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "spring-cloud-service", fallback = HystrixService.class)
public interface FeignService {
    @GetMapping(value = "/service/monitor/env")
    String serviceMonitorEnv(@RequestParam(value="sleep", defaultValue = "0") Long sleep);
}
